package org.dicker.biz.impl;

import java.util.List;

import org.dicker.biz.ManagerBiz;
import org.dicker.dao.ManagerDao;
import org.dicker.dao.impl.ManagerDaoImpl;
import org.dicker.entity.ManagerInfo;


public class ManagerBizImpl implements ManagerBiz {
	
	private ManagerDao managerDao = new ManagerDaoImpl();

	@Override
	public ManagerInfo selectManagerList(String account, String password) {
		List<ManagerInfo> list = managerDao.selectManagerList(account, password);
		return list.size()>0 ? list.get(0) : null;
	}

	@Override
	public ManagerInfo selectManagerID(int user_id) {
		return managerDao.selectManagerID(user_id);
	}
	
	

}
